﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityPet
{
    /// <summary>
    /// 宠物商店
    /// </summary>
    public class Pet_Store
    {

        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }

        /// <summary>
        /// 种类
        /// </summary>
        public Type type { get; set; }
        public enum Type
        {
            宠物食品=1,
            宠物玩具=2,
            宠物保健品=3,
            宠物服装=4,
            宠物打理工具=5
        }

        /// <summary>
        /// 价格
        /// </summary>
        [Required]
        [StringLength(50)]
        public decimal Price { get; set; }

        /// <summary>
        /// 商品库存
        /// </summary>
        public int Inventory{ get; set; }

        /// <summary>
        /// 商品利润
        ///  宠物食品       40%
        ///  宠物玩具       50%
        ///  宠物保健品     60%
        ///  宠物服装       40%
        ///  宠物打理工具   30%
        /// </summary>
        public DateTime ProductProfit { get; set; }

        /// <summary>
        /// 进货时间
        /// </summary>
        public DateTime PurchaseTime { get; set; }

        /// <summary>
        /// 出售时间
        /// </summary>
        public DateTime ?SellingTime { get; set; }
    }
}
